package com.pet.platform.service;

import com.pet.platform.common.PageResult;
import com.pet.platform.dto.AppointmentDTO;
import com.pet.platform.dto.AppointmentQueryDTO;
import com.pet.platform.entity.Appointment;

public interface AppointmentService {
    Appointment findById(Long id);
    
    PageResult<AppointmentDTO> findPage(AppointmentQueryDTO queryDTO);
    
    void create(AppointmentDTO appointmentDTO);
    
    void update(Long id, AppointmentDTO appointmentDTO);
    
    void delete(Long id);
    
    void updateStatus(Long id, String status);
    
    boolean checkTimeConflict(Long serviceId, AppointmentDTO appointmentDTO);
    
    // 获取预约总数
    Long count();
} 